package com.sky.directdeal.adapter;

import java.util.List;

import com.sky.directdeal.R;
import com.sky.local_ads.offer_list.OffersList;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

public class SampleAdapter extends BaseAdapter {
   private Context context;
   private List<OffersList> offersLists;
	@Override
	public int getCount() {
		return offersLists.size();
	}

	@Override
	public Object getItem(int arg0) {
		return offersLists.get(arg0);
	}

	@Override
	public long getItemId(int arg0) {
		return offersLists.indexOf(getItem(arg0));
	}

	@Override
	public View getView(int position, View convertview, ViewGroup parent) {
		ViewHolder viewHolder;
		LayoutInflater layoutInflater=(LayoutInflater)context.getSystemService(context.LAYOUT_INFLATER_SERVICE);
		if(convertview==null){
			convertview=layoutInflater.inflate(R.layout.abc_action_menu_layout, parent, false);
		}else{
			viewHolder=(ViewHolder)convertview.getTag();
		}
		// TODO Auto-generated method stub
		return null;
	}

	private static class ViewHolder{
		private TextView name;
	}
	
}
